/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 购买卡和商铺关联表
 *
 * @author csg
 * @date 2021-05-21 14:22:31
 */
@Data
@TableName("v_order_card_shop")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "购买卡和商铺关联表")
public class VOrderCardShop extends Model<VOrderCardShop> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 公司id
     */
    @ApiModelProperty(value="公司id")
    private Long companyId;
    /**
     * 品牌id
     */
    @ApiModelProperty(value="品牌id")
    private Long brandId;
    /**
     * 门店id
     */
    @ApiModelProperty(value="门店id")
    private Long shopId;
    @ApiModelProperty(value="用户id")
    private Long personId;
    @ApiModelProperty(value="卡id")
    private Long cardId;
    @ApiModelProperty(value="活动id")
    private Long activityId;
    @ApiModelProperty(value="购买类型（订单来源）： 0小程序  1代客下单")
    private Integer purchaseType;
    /**
     * 卡订单表id（v_order_card）
     */
    @ApiModelProperty(value="卡订单表id（v_order_card）")
    private Long orderCardId;
    /**
     * 当前状态：0正常使用  1门店已被卡列表移除  2门店合作终止
     */
    @ApiModelProperty(value="当前状态：0正常使用  1门店已被卡列表移除  2门店合作终止")
    private Integer currentStatus;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
